package com.zwb.service.config;

import com.google.code.kaptcha.impl.DefaultKaptcha;
import com.zwb.service.common.utils.CaptchaUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 头发又黑又长
 * @Date 2022/8/27 21:12
 * @email zwb15083976291@163.com
 */
@Configuration
public class CaptchaConfig {
    @Bean
    public DefaultKaptcha defaultKaptcha() {
        return new CaptchaUtil().getDefaultCaptcha();
    }

}

